package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._21中介者模式._1基本代码;

class ConcreteColleague2 extends Colleague {
    public ConcreteColleague2(Mediator mediator) {
        super(mediator);
    }

    public void send(String message)
    {
        this.mediator.send(message, this);
    }

    public void notify(String message){
        System.out.println("同事2得到信息:" + message);
    }
}
